#!/bin/bash

nohup java -jar ~/usr/local/jars/2-jar-1.0.0.jar &

docker rm -f 2-jar
docker run --name 2-jar -d -p 9000:9000 -v /usr/local/jars:/usr/local/jars openjdk:8 java -Dfile.encoding=utf8 -Djava.security.egd=file:/dev/./urandom -jar /usr/local/jars/2-jar-1.0.0.jar